package com.diaohw.platform.remote.ws.netty;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@Schema(description = "消息返回")
public class NettyMsgVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private String id;

    private String data;

    private String type;

    @JsonFormat(pattern = DatePattern.NORM_DATETIME_MS_PATTERN)
    private LocalDateTime sendTime;

    private String topic;

    private String subscribeId;

    private boolean status;

    private String token;


}
